package com.example.datachangerecord.record.eneity;


import com.example.datachangerecord.record.emun.LogicName;
import com.example.datachangerecord.record.emun.SelectType;
import com.example.datachangerecord.record.emun.TableCol;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author xyj
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Table {

    /**
     * 表名字
     */
    private String name;

    /**
     * 描述主体
     */
    private String desc;

    /**
     * 备注
     */
    private String remark;

    /**
     * 查询列
     */
    private List<ColumnData> selectCols;

    /**
     * 辅助列
     */
    private List<ColumnData> helpCols;

    /**
     * 查询方式
     */
    private SelectType selectType;

    /**
     * 逻辑判断字段名
     */
    private LogicName logicName;

    /**
     * 关注列名
     */
    private TableCol[] concernFields;

}
